package com.chendx.api.wemedia;

import com.chendx.model.common.dtos.ResponseResult;
import com.chendx.model.wemeida.dtos.WmMaterialDto;
import org.springframework.web.multipart.MultipartFile;

/**
 * Created by chendx on 2022/3/2.
 */
public interface WmMaterialControllerApi {
    /**
     * 上传图片
     * @param multipartFile
     * @return
     */
    ResponseResult uploadPicture(MultipartFile multipartFile);
    /**
     * 素材列表
     * @param dto
     * @return
     */
    ResponseResult findList(WmMaterialDto dto);

    /**
     * 根据id删除图片
     * @param id
     * @return
     */
    public ResponseResult delPicture(Integer id);

    /**
     * 取消收藏
     * @param id
     * @return
     */
    public ResponseResult cancelCollectionMaterial(Integer id);

    /**
     * 收藏
     * @param id
     * @return
     */
    public ResponseResult collectionMaterial(Integer id);
}
